package orthoplanner.com.google.code.ui;

import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JPanel;

public class ImageHolderPanel extends JPanel {
	private static final long serialVersionUID = -100844216239726011L;
	private ImageViewer imgViewer;

	public ImageHolderPanel(ImageViewer imgViewer) {
		setFont( new Font("SansSerif", Font.BOLD, 12));
		setLayout(new GridBagLayout());
		GridBagConstraints gbc = new GridBagConstraints();
		gbc.weightx = 1.0;
		gbc.weighty = 1.0;
		gbc.ipady = 0;
		gbc.ipadx = 0;
		gbc.fill = GridBagConstraints.BOTH;
		add(imgViewer, gbc);
	}

	public ImageViewer getImgViewer() {
		return imgViewer;
	}

	public void setImgViewer(ImageViewer imgViewer) {
		this.imgViewer = imgViewer;
	}

}
